-- GENERATED SPELL FOR [Amani'shi Handler] --


function spell0_24065(pUnit, Event) --@Electrified Net,n/a--
pUnit:FullCastSpellOnTarget(43362,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24065', 6500, 1)
end

function spell1_24065(pUnit, Event) --@Tranquilizing Poison,n/a--
pUnit:FullCastSpellOnTarget(43364,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24065', 8000, 1)
end

function Sorts_24065(pUnit, Event)
local choix_sorts_24065 = math.random(0, 1)
if choix_sorts_24065 == 0 then
pUnit:RegisterEvent('spell0_24065', 1, 1)
end
if choix_sorts_24065 == 1 then
pUnit:RegisterEvent('spell1_24065', 1, 1)
end
end

function mob24065_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24065', math.random(1500, 3000), 1)
end

function mob24065_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24065_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24065_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24065, 1, 'mob24065_Action')
RegisterUnitEvent(24065, 2, 'mob24065_Leave')
RegisterUnitEvent(24065, 3, 'mob24065_Kill')
RegisterUnitEvent(24065, 4, 'mob24065_Die')
